<?php
class Del_View_Helper_Rating
	extends Zend_View_Helper_Abstract
{
	public function rating( $rating )
	{
	    
	    $normal = '<div></div>';
	    $active = '<div class="active"></div>';
	    
	    $resto = 5 - ( (int) $rating);
	    
		return '<div class="rating">' . str_repeat($active, $rating) . str_repeat($normal, $resto) . '</div>';
	}
}